<?php
$conn = @ mysql_connect("localhost", "root", "tiancai") or die("connection failed");
mysql_select_db("qblog", $conn);
mysql_query("set names 'utf8'");



function htmtocode($content){
	$content = str_replace("\n", "<br>", str_replace(" ", "&nbsp;", $content));
	return $content;

}

?>
